﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Windows;

namespace TagPropagator.ViewModels
{
    public class AddTagViewModel : INotifyPropertyChanged
    {
        #region INOTIFY PROPERTY CHANGED SECTION
        public event PropertyChangedEventHandler PropertyChanged = (o, e) => { };

        public void OnPropertyChanged(string name)
        {
            if (PropertyChanged != null)
                PropertyChanged.Invoke(this, new PropertyChangedEventArgs(name));
        }

        #endregion


        private Node _node;
        private string _tagName;
        private double _tagValue;

        public string TagName
        {
            get { return _tagName; }
            set { _tagName = value; OnPropertyChanged("TagName"); }
        }

        public double TagValue
        {
            get { return _tagValue; }
            set { _tagValue = value; OnPropertyChanged("TagValue"); }
        }


        public AddTagViewModel()
        {

        }
    }
}
